package org.jeecg.modules.system.mapper;
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.system.entity.SysPosition;

import java.util.List;

/**
 * @Description: 岗位管理
 * @Author: jeecg-boot
 * @Date:   2019-07-31
 * @Version: V1.0
 */
public interface SysPositionMapper extends BaseMapper<SysPosition> {


    String  selectByPositionId(@Param("idList")List positionId);

    @Select("select id ,name,code from sys_position where del_flag = '0'")
    List<SysPosition> getAll();

    List<SysPosition> findPositionList(@Param("tenantId") String tenantId );

    List<SysPosition> findPositionListByAdmin( );
    @SqlParser(filter = true)
    void saveServerPosition(@Param("bean") SysPosition sysPosition);

    @SqlParser(filter = true)
    IPage<SysPosition> findServerPage(Page<SysPosition> page,@Param("bean") SysPosition sysPosition);
}
